package com.wq.gof.designer.chain.list;

import com.wq.gof.designer.chain.EventHandler;

/**
 * @Author: wangqiang20995
 * @Date:2019/1/25
 * @Description:
 * @Resource:
 */
public abstract class AbstractChainEventHandler implements EventHandler {

    private HandlerContext handlerContext;

    public AbstractChainEventHandler(HandlerContext handlerContext){
        this.handlerContext = handlerContext;
    }
    @Override
    public void handle(Object conditions) {
        doHandle(conditions,handlerContext);
    }

    public abstract void doHandle(Object conditions,HandlerContext handlerContext);
}
